package cn.platform.mapper;

import cn.platform.entity.Activity;
import cn.platform.request.ActivityRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityMapper {
    // 查询
    List<Activity> listActivity(ActivityRequest req);

    // 新增
    void insertActivity(ActivityRequest req);

    // 更新，用id找，其余参数为更新内容，null值不更新
    void updateActivity(ActivityRequest req);

    // 删除，用id找
    void deleteActivity(ActivityRequest req);
}
